import Vue from "vue";
import VueRouter from "vue-router";
import Home from "@/views/Home.vue";
import HomeComp1 from "@/components/home/HomeComp1.vue";
import HomeComp2 from "@/components/home/HomeComp2.vue";
import HomeComp3 from "@/components/home/HomeComp3.vue";
import HomeComp4 from "@/components/home/HomeComp4.vue";
import HomeComp5 from "@/components/home/HomeComp5.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: Home,
    children: [
      {
        path: "/",
        component: HomeComp1,
      },
      {
        path: "/comp2",
        component: HomeComp2,
      },
      {
        path: "/comp3",
        component: HomeComp3,
      },
      {
        path: "/comp4",
        component: HomeComp4,
      },
      {
        path: "/comp5",
        component: HomeComp5,
      },
    ],
  },
  {
    path: "/about",
    name: "about",
    component: () => import("../views/About.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
